<!doctype html>
<!DOCTYPE html><html lang="zh-CN"><head><meta charset="utf-8">

	<meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1">
	<meta name="renderer" content="webkit">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
	<meta name="format-detection" content="telephone=no">
	<title>超级搜索 - 全网精选折扣汇</title>
	<link rel="stylesheet" href="./addons/bsht_tbk/res/v3/css/qtz.css">
	<link rel="stylesheet" href="./addons/bsht_tbk/res/v3/css/nb2019.css">
	<link rel="stylesheet" href="./addons/bsht_tbk/res/v3/css/swiper.css">
	<link rel="stylesheet" href="./addons/bsht_tbk/res/font/iconfont.css">
	<link href="./addons/bsht_tbk/res/nb_bui/css/animate.min.css" rel="stylesheet" type="text/css">
	<link rel="stylesheet" href="./addons/bsht_tbk/res/css/nbmenu.css">
	<script type="text/javascript" src="./addons/bsht_tbk/res/js/jquery.min.js"></script>
	<script type="text/javascript" src="./addons/bsht_tbk/res/js/clipboard2.min.js"></script>
	<script type="text/javascript" src="./addons/bsht_tbk/res/js/nbmenu.js"></script>
	<script type="text/javascript" src="./addons/bsht_tbk/res/js/layer/layer.js"></script>
	<script type="text/javascript" src="./addons/bsht_tbk/res/js/nbso_base.js"></script>
	<link rel="stylesheet" href="./addons/bsht_tbk/res/css/nbso_base.css">
	<script src="./addons/bsht_tbk/res/res_hdk/js/NB_twipe.js"></script>
	<script src="./res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
	<script type="text/javascript">

var localhosturlhuanzi  = "localhost" ;
var testurlhuanzi  = "8kmsah.natappfree.cc" ;
var prourlhuanzi  = "www.huanzi.xyz" ;
	if(navigator.appName == 'Microsoft Internet Explorer'){
		if(navigator.userAgent.indexOf("MSIE 5.0")>0 || navigator.userAgent.indexOf("MSIE 6.0")>0 || navigator.userAgent.indexOf("MSIE 7.0")>0) {
			alert('您使用的 IE 浏览器版本过低, 推荐使用 Chrome 浏览器或 IE8 及以上版本浏览器.');
		}
	}
	window.sysinfo = {
		'uniacid': '2',
		'acid': '2',
		'siteroot': 'http://'+prourlhuanzi+'/',
		'siteurl': 'http://'+prourlhuanzi+'/officialAccount/getMaterialOptional?c=entry&i=2&m=318468_YnNodF90Yms%3D_tgfuas&do=index',
		'attachurl': 'http://'+prourlhuanzi+'/attachment/',
		'attachurl_local': 'http://'+prourlhuanzi+'/attachment/',
		'attachurl_remote': '',
		'MODULE_URL': 'http://'+prourlhuanzi+'/addons/bsht_tbk/',
		'cookie' : {'pre': 'a067_'}
	};
	// jssdk config 对象
	jssdkconfig = null || {};
	// 是否启用调试
	jssdkconfig.debug = false;
	jssdkconfig.jsApiList = [
		'checkJsApi',
		'onMenuShareTimeline',
		'onMenuShareAppMessage',
		'onMenuShareQQ',
		'onMenuShareWeibo',
		'hideMenuItems',
		'showMenuItems',
		'hideAllNonBaseMenuItem',
		'showAllNonBaseMenuItem',
		'translateVoice',
		'startRecord',
		'stopRecord',
		'onRecordEnd',
		'playVoice',
		'pauseVoice',
		'stopVoice',
		'uploadVoice',
		'downloadVoice',
		'chooseImage',
		'previewImage',
		'uploadImage',
		'downloadImage',
		'getNetworkType',
		'openLocation',
		'getLocation',
		'hideOptionMenu',
		'showOptionMenu',
		'closeWindow',
		'scanQRCode',
		'chooseWXPay',
		'openProductSpecificView',
		'addCard',
		'chooseCard',
		'openCard',
		'openAddress'
	];
	</script>
	<style>
	.nbso-onoff {
    margin-top: 7px;
    }
	.html_one_close{
	position: absolute;
    z-index: 777;
    right: 2px;
	}
	.html_one_close img{
	width: 30px;
    bottom: 7px;
    position: relative;
	}
	.nb_nav_ul .nb_li:first-child a {
    padding-left: 57px;
    }
	.nbso-all {
    position: fixed;
    width: 100%;
    height: auto;
    z-index: 999999;
    top: 85px;
    background: #fff;
    padding-bottom: 0px;
    left: 48px;
    display: none;
}
	</style>
</head>
<body style="min-height:100vh;">
<p class="nb_progress" style="display:none"></p>
<!--参数传递-->
<div style="position: fixed;top: -10000px;" id="all_set">
	<div id="caok" style="position: fixed;top: -10000px;">0</div>
	<div id="capage" style="position: fixed;top: -10000px;"></div>
	<div id="nbso_main" style="position: fixed;top: -10000px;">0</div>
	<div id="page" style="position: fixed;top: -10000px;">1</div>
	<div id="cid" style="position: fixed;top: -10000px;">0</div>
	<div id="stop" style="position: fixed;top: -10000px;">0</div>
	<div id="index" style="position: fixed;top: -10000px;">0</div>
	<div id="allindex" style="position: fixed;top: -10000px;">1</div>
	<div id="indexname" style="position: fixed;top: -10000px;"></div>
	<input style="position: fixed;top: -10000px;" value="" id="post_set" type="text">
	<div id="key" style="position: fixed;top: -10000px;"></div>
	<div id="is_q" style="position: fixed;top: -10000px;">0</div>
	<div id="is_tb" style="position: fixed;top: -10000px;">1</div>
	<div id="is_jd" style="position: fixed;top: -10000px;">0</div>
	<div id="is_pdd" style="position: fixed;top: -10000px;">0</div>
	<div id="is_vip" style="position: fixed;top: -10000px;">0</div>
	<div id="is_sn" style="position: fixed;top: -10000px;">0</div>
	<div id="is_tm" style="position: fixed;top: -10000px;">0</div>
	<div id="is_site" style="position: fixed;top: -10000px;">0</div>
	<div id="is_qtz" style="position: fixed;top: -10000px;">2836</div>
	<div id="is_by" style="position: fixed;top: -10000px;">0</div>
	<div id="is_ht" style="position: fixed;top: -10000px;">0</div>
	<div id="is_xfzbz" style="position: fixed;top: -10000px;">0</div>
	<div id="is_tkld" style="position: fixed;top: -10000px;">0</div>
	<div id="is_hplg" style="position: fixed;top: -10000px;">0</div>
	<div id="is_zhlg" style="position: fixed;top: -10000px;">0</div>
	<div id="is_pyby" style="position: fixed;top: -10000px;">0</div>
	<div id="is_tbjp" style="position: fixed;top: -10000px;">0</div>
	<div id="is_fee_1" style="position: fixed;top: -10000px;">0</div>
	<div id="is_fee_2" style="position: fixed;top: -10000px;">0</div>
	<div id="is_bl_1" style="position: fixed;top: -10000px;">0</div>
	<div id="is_bl_2" style="position: fixed;top: -10000px;">0</div>
	<div id="is_type" style="position: fixed;top: -10000px;">2</div>
	<div id="window_scroll_y" style="position: fixed;top: -10000px;">0</div>
</div>
<!--参数传递-->

<!--div class="nb_banner" id="top">
	<a href=""><img src="http://"+prourlhuanzi+"/addons/bsht_tbk/res/images/tlj.jpg" alt=""></a>
</div-->
<style>
.nb_nav_ul {
    margin-top: 40px;
}
/* .nb_list {
    margin-top: 41px;
} */
.nb_nav_div {
    position: relative;
	height:82px;
}
.nb_so_div{
    position: absolute;
    width: 100%;
    overflow: hidden;
	height: 40px;
	line-height: 35px;
	font-size:13px;
	border-bottom: 1px solid #f2f2f5;
}
.nb_so_ul{
  width: 100%;
  text-align: center;
}

.nb_nav_slot .filter-icon{
    top: 40px;
    box-shadow: 0px 0px 1px rgba(0,0,0,.2);
}
.nb_so_ul li{
    width: 18%;
    display: inline-block;
    text-align: center;
	margin-right:0px !important;
}
.nb_so_ul .active{
  color:#F40;
  position: relative;
}
.nb_so_ul .active a{
  color:#F40;
  font-weight:600;
}
.nb_so_ul a:after{
  content:"";transition:all .6s cubic-bezier(.4,.68,.15,1) 0s;-webkit-transition:all .6s cubic-bezier(.4,.68,.15,1) 0s;display:block;position:absolute;bottom:3px;left:-50%;width:0;right:0;margin: 0 auto;
}
.nb_so_ul .active a:after{
    content: '';
    background-color: #F40;
    height: 2px;
    width:50%;
    border-radius: 25px;
    position: absolute;
    left: 0;
    bottom:3px;
    right: 0;
    margin: 0 auto;
}
.nbso-all-li {
  display:inline-block !important;
  width:20% !important;

}
.nb_nav_li .active span{
   color:#F40;
}
.nb_nav_ul .nb_li:first-child a {
    padding-left:0px;
}
.nb_nav_ul .fr{
  position: absolute;
  right: 0;
}
.newft{
  margin-left:50px;
}
.so_key,.so_key_in{
  border-radius: 3px;
}
.active-tb a{
    color:#ff1f1f !important;
}
.active-tb a:after{
    background-color:#ff1f1f !important;
}
.active-pdd a{
    color:#c81697 !important;
}
.active-pdd a:after{
    background-color:#c81697 !important;
}
.active-jd a{
    color:#c81623 !important;
}
.active-jd a:after{
    background-color:#c81623 !important;
}
.active-vip a{
    color:#ff66b7 !important;
}
.active-vip a:after{
    background-color:#ff66b7 !important;
}
.active-sn a{
    color:#f8b600 !important;
}
.active-sn a:after{
    background-color:#f8b600 !important;
}
.nb_list_tb{
  background-image: linear-gradient(to bottom,#ff7438,#ff1f1f);
  min-height:100vh;
}
.nb_list_pdd{
  background-image: linear-gradient(to bottom,#b202f1,#c81697);
  min-height:100vh;
}
.nb_list_jd{
  background-image: linear-gradient(to bottom,#f10215,#c81623);
  min-height:100vh;
}
.nb_list_vip{
  background-image: linear-gradient(to bottom,#ff7cc1,#ff66b7);
  min-height:100vh;
}
.nb_list_sn{
  background-image: linear-gradient(to bottom,#f8b600,#f8b600);
  min-height:100vh;
}
.search{
  background: #fff;
}
.so_key,.so_key_in{
  background: rgba(0,0,0,0.05);
  color: #999;
}
.nbso_main{
   background: #fff !important;
}
.sug-menu-li{
  background: #eee;
}
.nb_nav_li .active span {
    color: #fff;
    background: #F40;
    padding: 3px 5px 3px 5px;
    border-radius: 5px;
    text-align: center;
	font-size: 11px;
}
#back_xiang_qing_ye {
    display: none;
	position: absolute;
    float: left;
    padding: 10px 0px 0 10px;
	z-index: 10001;
}
</style>
<div id="back_xiang_qing_ye"  ><img src="./addons/bsht_tbk/res/images/nbso-back.png" style="width:18px;vertical-align: middle;margin-bottom:3px;"></div>
<div id="xiang_qing_ye" style="position: absolute; z-index: 10000; width: 100%; height: 100%;display: none;" >
	<!-- 内容主体区域 -->
	<iframe id="iframe_0" style="padding: 0px; width: 100%; height: 100%;" frameborder="no"  scrolling="no"
			allowtransparency="yes">
	</iframe>
</div>
<div class="nb_nav_slot" ><!-- style="height:85px;" -->
	<div class="search">
		<!-- <div class="so_l" onclick="javascript:history.back(-1);"><img src="./addons/bsht_tbk/res/images/nbso-back.png" style="width:18px;vertical-align: middle;margin-bottom:3px;"></div> -->
		<div style="width:auto;display:inline-block;" onclick="show_nbso();" id="initClickKey"><div class="so_key">请输入商品标题或关键字</div></div>
		<div class="so_r" onclick="reload();"><img src="./addons/bsht_tbk/res/images/nbso-rand.png" style="width:18px;vertical-align: middle;margin-bottom:0px;"></div>
	</div>
	<!-- <div class="nb_nav_div"> -->
	<!-- <div class="nb_so_div">
      <ul class="nb_so_ul">
                    <li class="sobtn active a_0" id="nbso-istb"><a>淘宝天猫<img class="nbso-onoff off" style="display:none;"></a></li>
                    <li class="sobtn  a_1" id="nbso-ispdd"><a>拼多多<img class="nbso-onoff off" style="display:none;"></a></li>
                    <li class="sobtn  a_2" id="nbso-isjd"><a>京东<img class="nbso-onoff off" style="display:none;"></a></li>
        <li class="sobtn a_3" id="nbso-isvip"><a>唯 -->
	<!--b style="color:#ff66b7;margin-left:2px;margin-right:2px;">·</b-->
	<!-- 品会<img class="nbso-onoff off" style="display:none;"></a></li>
            <li class="sobtn a_4" id="nbso-issn"><a>苏宁<img class="nbso-onoff off" style="display:none;"></a></li>
          </ul>
</div> -->
	<!-- <ul class="nb_nav_ul" id="menu_nav"> -->
	<!-- <li class="nb_li nb_nav_li newft">

        <a class="nbso-all-li " id="sort_1"><span>综合</span><img src="./addons/bsht_tbk/res/images/nbso-on.png" class="nbso-onoff fr pr66" style="display:none;"></a>
        <a class="nbso-all-li active" id="sort_2"><span>销量</span><img src="./addons/bsht_tbk/res/images/nbso-on.png" class="nbso-onoff fr pr66" style="position: relative;"></a>

        <a class="nbso-all-li " id="sort_3"><span>比例</span><img src="./addons/bsht_tbk/res/images/nbso-on.png" class="nbso-onoff fr pr66" style="display:none;"></a>
        <a class="nbso-all-li " id="sort_4"><span>价格</span><img src="./addons/bsht_tbk/res/images/nbso-on.png" class="nbso-onoff fr pr66" style="display:none;"></a>
    </li>
    <li class="nb_li nb_nav_li fr" style="padding-right:15px;" id="nbso-isq"><span><img src="./addons/bsht_tbk/res/images/nbso-on.png" class="nbso-onoff off" style="margin-top: 13px;">有券</span></li>
     -->
	<!--
                <li class="nb_li nb_nav_li fr" style="margin-right:18px;" id="nbso-issn"><span class="nbso-onoff-span"><img src="./addons/bsht_tbk/res/images/nbso-sn-s.png?v=1" class='nbso-onoff off' style="border-radius:3px;overflow:hidden;padding-right:0px;height:25px;">&nbsp;&nbsp;&nbsp;&nbsp;</span></li>
                            <li class="nb_li nb_nav_li fr" style="margin-right:18px;" id="nbso-isvip"><span class="nbso-onoff-span"><img src="./addons/bsht_tbk/res/images/nbso-vip-s.png" class='nbso-onoff off' style="border-radius:3px;overflow:hidden;padding-right:0px;height:25px;">&nbsp;&nbsp;&nbsp;&nbsp;</span></li>
                            <li class="nb_li nb_nav_li fr" style="margin-right:18px;" id="nbso-isjd"><span class="nbso-onoff-span"><img src="./addons/bsht_tbk/res/images/nbso-jd-s.png" class='nbso-onoff off' style="border-radius:3px;overflow:hidden;padding-right:0px;height:25px;">&nbsp;&nbsp;&nbsp;&nbsp;</span></li>
                            <li class="nb_li nb_nav_li fr" style="margin-right:18px;" id="nbso-ispdd"><span class="nbso-onoff-span"><img src="./addons/bsht_tbk/res/images/nbso-pdd-s.png" class='nbso-onoff off' style="border-radius:3px;overflow:hidden;padding-right:0px;height:25px;">&nbsp;&nbsp;&nbsp;&nbsp;</span></li>
                            <li class="nb_li nb_nav_li fr" style="margin-right:18px;" id="nbso-istb"><span class="nbso-onoff-span"><img src="./addons/bsht_tbk/res/images/nbso-tb-s.png" class='nbso-onoff off' style="border-radius:3px;overflow:hidden;padding-right:0px;height:25px;">&nbsp;&nbsp;&nbsp;&nbsp;</span></li>
                -->
	<!-- </ul> -->
	<!-- <a href="#menu">
    <div class="filter-icon nbso_nav" style="background:#fff;text-align: center;font-size: 12px;width:48px;left:0;">
    <img src="./addons/bsht_tbk/res/images/nbso-sx.png" style="width: 9px;margin-right: 3px;position: relative;">筛选
    </div>
    </a> -->
</div>

<!--下拉选项-->
<div class="nbso-all">
	<ul class="nbso-all-ul">
		<li class="nbso-all-li " id="sort_1"><span>综合排序</span><img src="./addons/bsht_tbk/res/images/nbso-on.png" class="nbso-onoff fr pr66" style="display:none;"></li>
		<li class="nbso-all-li active" id="sort_2"><span>月销量从高到低</span><img src="./addons/bsht_tbk/res/images/nbso-on.png" class="nbso-onoff fr pr66" style="position: relative;"></li>
		<li class="nbso-all-li " id="sort_3"><span>收入比例从高到底</span><img src="./addons/bsht_tbk/res/images/nbso-on.png" class="nbso-onoff fr pr66" style="display:none;"></li>
		<li class="nbso-all-li " id="sort_4"><span>价格从低到高</span><img src="./addons/bsht_tbk/res/images/nbso-on.png" class="nbso-onoff fr pr66" style="display:none;"></li>
		<li class="nbso-all-li" id="sort_5"><span>价格从高到低</span><img src="./addons/bsht_tbk/res/images/nbso-on.png" class="nbso-onoff fr pr66" style="display:none;"></li>
	</ul>
</div>
<div class="nbso-all-bak" onclick="nbso_cl();"></div>
<!--下拉选项-->
</div>


<div class="nb_list" id="nb_list">
	<div id="wrapper" style="padding-bottom:40px;">
		<ul class="goods-two" id="html_one" style="padding-bottom:0px;display:none;">
		</ul>
		<ul class="goods-two" id="html" style="padding-bottom:35px;">
			<div style="width:100%;text-align: center;padding-top:50px;" id="iidpic"><img src="./addons/bsht_tbk/res/v3/images/loading-1.svg" class="nbloadingsvg"></div>
		</ul>
	</div>
</div>

<!-- 结束 -->
<div class="nb_tip_bg">
</div>
<a class="nbso_btn go_top" href="javascript:" style="position: fixed;right: 11px;background: url(./addons/bsht_tbk/res/images/qtz_list_0.png) no-repeat center center;background-size: 100% auto;width: 35px;height: 35px;border-radius: 50%;bottom: 80pt;display:none;z-index:9995;" onclick="to_top();"></a>

<!-- <a class="nbso_btn" href="javascript:" onclick="go_share();" style="position: fixed;right: 11px;background: url(./addons/bsht_tbk/res/images/qtz_list_3.png) no-repeat center center;background-size: 100% auto;width: 35px;height: 35px;border-radius: 50%;bottom: 50pt;z-index:9995;"></a> -->


<!-- <div id="nb-menu" style="padding-bottom:3px">
    <ul class="nb-ul" style="height:auto;padding-bottom:4px;">


            <li class="nb-relative ">
                <a href="/officialAccount/getMaterialOptional?i=2&amp;c=entry&amp;do=index&amp;m=bsht_tbk&amp;nb_btn=1" class="link-hover"></a>
                <div class="menu-inside" style="height:38px;">
					<i id="nb_btn_1" class="nb-btn" style="margin-bottom:3px;background-image:url(&amp;#x27;../attachment/images/2/2018/09/CApvFGa9zoizigA7XZsVifO8o7XpFo.jpg&amp;#x27;);background-position: 50% 50%; background-repeat:no-repeat;width:25px;height:25px;border-radius: 0%;margin-bottom:8px"></i>
                    <div class="font-div" style="padding-top:0px;margin-bottom:3px;">淘宝/天猫</div>
                </div>
            </li>


            <li class="nb-relative ">
                <a href="/officialAccount/getMaterialOptional?i=2&amp;c=entry&amp;do=index&amp;m=nice_pdd&amp;shopid=1&amp;nb_btn=10" class="link-hover"></a>
                <div class="menu-inside" style="height:38px;">
					<i id="nb_btn_10" class="nb-btn" style="margin-bottom:3px;background-image:url(&amp;#x27;../attachment/images/2/2018/05/qHJn6juolNsZoRjDuzXaUaANeJ2ujL.png&amp;#x27;);background-position: 50% 50%; background-repeat:no-repeat;width:25px;height:25px;border-radius: 0%;margin-bottom:8px"></i>
                    <div class="font-div" style="padding-top:0px;margin-bottom:3px;">拼多多</div>
                </div>
            </li>


            <li class="nb-relative ">
                <a href="/officialAccount/getMaterialOptional?i=2&amp;c=entry&amp;do=index&amp;m=nice_jd&amp;nb_btn=2" class="link-hover"></a>
                <div class="menu-inside" style="height:38px;">
					<i id="nb_btn_2" class="nb-btn" style="margin-bottom:3px;background-image:url(&amp;#x27;../attachment/images/2/2018/09/XZ8bvv8WihKHm6hhNIBNw6hYWmIoh6.png&amp;#x27;);background-position: 50% 50%; background-repeat:no-repeat;width:25px;height:25px;border-radius: 0%;margin-bottom:8px"></i>
                    <div class="font-div" style="padding-top:0px;margin-bottom:3px;">京东券</div>
                </div>
            </li>


            <li class="nb-relative ">
                <a href="http://"+prourlhuanzi+"/officialAccount/getMaterialOptional?i=2&amp;c=entry&amp;do=index&amp;m=nice_vip&amp;nb_btn=17" class="link-hover"></a>
                <div class="menu-inside" style="height:38px;">
					<i id="nb_btn_17" class="nb-btn" style="margin-bottom:3px;background-image:url(&amp;#x27;../attachment/images/2/2019/11/uearsFcmLJRmql02elsqscwqsSF0fr.jpg&amp;#x27;);background-position: 50% 50%; background-repeat:no-repeat;width:25px;height:25px;border-radius: 0%;margin-bottom:8px"></i>
                    <div class="font-div" style="padding-top:0px;margin-bottom:3px;">唯品会</div>
                </div>
            </li>


            <li class="nb-relative ">
                <a href="/officialAccount/getMaterialOptional?i=2&amp;c=entry&amp;do=uc&amp;m=bsht_tbkdl&amp;nb_btn=4" class="link-hover"></a>
                <div class="menu-inside" style="height:38px;">
					<i id="nb_btn_4" class="nb-btn" style="margin-bottom:3px;background-image:url(&amp;#x27;../attachment/images/2/2018/09/UtWiJl2Dcp0E82WW2S0w7D8z11Wt7i.png&amp;#x27;);background-position: 50% 50%; background-repeat:no-repeat;width:25px;height:25px;border-radius: 0%;margin-bottom:8px"></i>
                    <div class="font-div" style="padding-top:0px;margin-bottom:3px;">个人中心</div>
                </div>
            </li>
       </ul>
</div> -->

<!--nav-->
<script>

jQuery(document).ready(function($) {



	$("nav#menu").mmenu({
		"slidingSubmenus": false,
	});

var ckcaok = $("#caok").html();
setTimeout(function() {
	if(ckcaok == 0){
$("#nbso-istb").click();
	}
console.log('isclick_tb');
}, 18);







setTimeout(function() {
console.log('load start');
if(!window.localStorage){
            alert("浏览器支持--localstorage");
            return false;
			}else{
				var storage=window.localStorage;
				storage.inMainPage=1;
			}

make_post_set(0);
}, 118);


setTimeout(function() {
	$('.nb_progress').hide();
}, 1111);

//精确查询
setTimeout(function() {
var ck_tb = $("#is_tb").html();
var ck_iid = '';
var uid = "0";

var gyd = 0;
var gyd_q = 0;
var actid = "";
if(ck_tb == 1 && ck_iid != ''){
   $.ajax({
            type: "get",
			dataType: "json",
			url:"http://"+prourlhuanzi+"/officialAccount/getMaterialOptional?i=2&c=entry&do=getxtkinfo&m=bsht_tbk&shopid=0&itemid="+ck_iid+"&actid="+actid+"&gyd_q="+gyd_q+"&gyd="+gyd+"&uid="+uid,
            success:function(daa){
				// alert("setTimeout 精确查询-data")
			   if(daa.info == 'ok' && daa.num > 0){
			   var debug = daa.debug;
			   var list = daa.newdata[0];
			   var txtq = '到手价';
			   var allhide = '';
			   var nbyz = '';
			   var nbfl = '';
			   var spfeestyle = '';
			   var flstyle = '';
			   var hide1 = '';
			   var sell = '';
			   var icon = '';
			   var qtxt = '';
			   if(list['yhjfee']==0){
			     hide1 = 'display:none;';
			   }

var spfee = daa['shopyuji'];
var fanli = daa['fanli'];
if(spfee>0){
var nbyz = "赚"+spfee+"";
var spfeestyle = "";
}else{
var nbyz = "";
var spfeestyle = "display:none;";
spfee = 0
}

if(fanli>0){
var nbfl = "奖"+fanli+"";
var flstyle = "";
}else{
var nbfl = "";
var flstyle = "display:none;";
fanli = 0;
}

var spadmin = "0";
var isspshow = "2";
var isflshow = "1";

if(spadmin != 1 || isspshow != 1){
								    var nbyz = "";
                                    var spfeestyle = "display:none;";
                                    spfee = 0;
								}

								if(isflshow != 1){
								   var nbfl = "";
                                    var flstyle = "display:none;";
                                    fanli = 0;
								}
if(gyd>0){
var gydtxt = '<span style="background: #f50;color: #fff;padding: 1px 6px;border-radius: 3px">预告券</span>';
var href = list['href'];
var ckact = GetRequest_str(href, 'actid');
var ckyhq = "";
if(ckyhq > 0 && list['yhjfee'] ==0){
  ckyhq = parseFloat(ckyhq);
  gyd_q = ckyhq;
  txtq = '券后';
  hide1 = '';
}
list['itemfee'] = list['yhjfee'] + list['itemfee2'];
list['yhjfee'] = gyd_q;
list['itemfee2'] = list['itemfee'] - list['yhjfee'];
list['itemfee2'] = list['itemfee2'].toFixed(2);
if(ckact = ''){
   href = href.replace('&actid=', '');
}else{
   href = list['href'];
}

list['href'] = href+"&gyd=1&gyd_q="+gyd_q+"&actid="+actid;
}else{
var gydtxt = '';
}


//ys
if(typeof debug['presale_deposit'] != 'undefined'){
    var ys = debug['presale_deposit'];
	if(ys != '' && ys && ys != null && ys !='0'){
	                           txtq = '预售价';
							   allhide = '';
							   flstyle = "";
							   var ys_txt = debug['presale_discount_fee_text'];
							   if(typeof ys_txt == 'undefined'){
							     ys_txt = '预售产品限时抢购';
							   }
							   qtxt = "定金 "+ys+" 元";
							   nbyz = "定金 "+ys+" 元";
							   nbfl = ys_txt;
							   flstyle = "";
							   var ys_data = '';
							   var ys_p = '<p class="yuezhuan" style="right:auto;left:0;border-radius: 0 10px 0px 0;padding:2.2px 7px 2.2px 4.4px;background:linear-gradient(to left,rgba(255,113,233,.91) 0,rgba(254,92,158,.91) 100%);bottom: 0;">预售</p>';
	}else{
	 var ys_txt = '';
	 var ys_data = '';
	 var ys_p = '';
	}
}else{
var ys_txt = '';
var ys_data = '';
var ys_p = '';
}
//ys

list['itemfee2'] = list['itemfee2'].toFixed(2);


			   var html = '<div class="html_one_close" onclick="hide_one();"><img src="./addons/bsht_tbk/res/images/logo_close.png"></div><li class="row-s listpage1"><a href="'+list['href']+'" data-id="nba"><div class="img" style="position:relative">'+ys_p+'<img src="'+list['itempic']+'" alt="" style="background:#f5f5f5;display:block"></div><div class="cent"><h3>'+icon+''+list['title']+'</h3><div class="num col-aaa"><div class="coupon-icon" style="'+hide1+'"><span class="coupon-icon-left">券</span> <span class="coupon-icon-right">'+list['yhjfee']+'元</span></div>'+gydtxt+'<span class="fr">月销'+ft(list['itemmsell'])+'件</span></div><div class="money col-money"><p class="fr dp-name"></p>'+txtq+' <span class=""><i style="padding-right:2px;">¥</i>'+list['itemfee2']+'</span></div></div><div style="height:30px;'+allhide+'"><div class="fl-fee fr" style="display:none'+flstyle+'"><img src="./addons/bsht_tbk/res/images/logo_tb.png">'+nbfl+'</div></div></a></li>';
			   $('#html_one').html(html);
			   $('#html_one').fadeIn(200);
			   }
			}
   });
}else{
	// alert("setTimeout 精确查询 -else");
}
}, 5890);
//精确查询


	$(".nbso-all-show").click(function() {
		$('.nbso-all-bak').fadeToggle(100);

		$('.nbso-all').slideToggle(150, function() {
			if ($('.nbso-all').is(':hidden')) {
				$('.a-up').addClass('a-down');
				$('.a-down').removeClass('a-up');
				console.log("hidden");
			} else {
				$('.a-down').addClass('a-up');
				$('.a-up').removeClass('a-down');
				console.log("show");
			}
		});
	});
	$(".nbso-all-li").click(function() {
		again();
		$(".nbso-all-li").removeClass('active');
		$(".nbso-all-li img").attr('style', 'display:none;');
		$(this).addClass('active');
		$(this).find('img').attr('style', 'position: relative;');
		var sord_id = $(this).attr('id');
		if (sord_id == 'sort_1') {
			var text = '综合';
			$('#is_type').html('1');
			make_post_set();
		}
		if (sord_id == 'sort_2') {
			var text = '销量';
			$('#is_type').html('2');
			make_post_set();
		}
		if (sord_id == 'sort_3') {
			var text = '奖励';
			$('#is_type').html('3');
			make_post_set();
		}
		if (sord_id == 'sort_4') {
			var text = '价格↑';
			$('#is_type').html('4');
			make_post_set();
		}
		if (sord_id == 'sort_5') {
			var text = '价格↓';
			$('#is_type').html('5');
			make_post_set();
		}
		$('.nbso-all-show').find('span').html(text);
		$('.nbso-all').slideUp(150);
		$('.nbso-all-bak').fadeOut(100);
		$('.a-up').addClass('a-down');
		$('.a-down').removeClass('a-up');
	});
	$("#nbso-isq").click(function() {
		again();
		var this_class = $('#nbso-isq img').attr('class');
		if (this_class == 'nbso-onoff off') {
			$('#nbso-isq img').attr('class', 'nbso-onoff');
			$(this).find('span').attr('style', 'color: #F40;');
			$('#is_q').html('1');
			make_post_set();
		} else {
			$('#nbso-isq img').attr('class', 'nbso-onoff off');
			$(this).find('span').attr('style', '');
			$('#is_q').html('0');
			make_post_set();
		}

	});
	$("#nbso-isvip").click(function() {
		$('#index').html('3');
		$('#indexname').html('nbso-isvip');
		$('.nb_list').removeClass('nb_list_tb');
		$('.nb_list').removeClass('nb_list_pdd');
		$('.nb_list').removeClass('nb_list_jd');
		$('.nb_list').removeClass('nb_list_sn');
		$('.nb_list').removeClass('nb_list_vip');
		$('.sobtn').removeClass('active');
		$('.sobtn').removeClass('active-tb');
		$('.sobtn').removeClass('active-pdd');
		$('.sobtn').removeClass('active-jd');
		$('.sobtn').removeClass('active-sn');
		$('.sobtn').removeClass('active-vip');
		$(this).addClass('active');
		$(this).addClass('active-vip');
		//('.nb_list').addClass('nb_list_vip');

		$('.sobtn').removeClass('active');$(this).addClass('active');
		$('#nbso-isq').attr('style','padding-right: 15px;pointer-events: none;color: #bbb;');
		again();
        $(this).attr('style','margin-right:18px;pointer-events: none;');
		$('#nbso-istb').attr('style','margin-right:18px;');
		$('#nbso-isjd').attr('style','margin-right:18px;');
		$('#nbso-ispdd').attr('style','margin-right:18px;');
		$('#nbso-issn').attr('style','margin-right:18px;');
		$('#nbso-isjd img').attr('class', 'nbso-onoff off');
		$('#nbso-istb img').attr('class', 'nbso-onoff off');
		$('#nbso-ispdd img').attr('class', 'nbso-onoff off');
		$('#nbso-issn img').attr('class', 'nbso-onoff off');
		$('.nbso-onoff-span').attr('style', '');
		$('#is_jd').html('0');
		$('#is_pdd').html('0');
		$('#is_sn').html('0');
		$('#is_tb').html('0');
		var this_class = $('#nbso-isvip img').attr('class');
		if (this_class == 'nbso-onoff off') {
			$('#nbso-isvip img').attr('class', 'nbso-onoff');
			$(this).find('span').attr('style', 'color: #F40;');
			$('#is_vip').html('1');
			$('.menu-li').attr('style','pointer-events: none;color: #bbb;');
			$('.menu-li').removeClass('active');
			$('#is_tb').html('0');
			$('#is_jd').html('0');
			$('#is_pdd').html('0');
			$('#is_sn').html('0');
			$('.is_tm').html('天猫');
			$('.is_by').html('包邮');
			make_post_set();
		}
	});
	$("#nbso-issn").click(function() {
		$('#index').html('4');
		$('#indexname').html('nbso-issn');
		$('.nb_list').removeClass('nb_list_tb');
		$('.nb_list').removeClass('nb_list_pdd');
		$('.nb_list').removeClass('nb_list_jd');
		$('.nb_list').removeClass('nb_list_sn');
		$('.nb_list').removeClass('nb_list_vip');
		$('.sobtn').removeClass('active');
		$('.sobtn').removeClass('active-tb');
		$('.sobtn').removeClass('active-pdd');
		$('.sobtn').removeClass('active-jd');
		$('.sobtn').removeClass('active-sn');
		$('.sobtn').removeClass('active-vip');
		$(this).addClass('active');
		$(this).addClass('active-sn');
		//$('.nb_list').addClass('nb_list_sn');

		$('.sobtn').removeClass('active');$(this).addClass('active');
		$('#nbso-isq').attr('style','padding-right: 15px;pointer-events: none;color: #bbb;');
		again();
        $(this).attr('style','margin-right:18px;pointer-events: none;');
		$('#nbso-istb').attr('style','margin-right:18px;');
		$('#nbso-isjd').attr('style','margin-right:18px;');
		$('#nbso-ispdd').attr('style','margin-right:18px;');
		$('#nbso-isvip').attr('style','margin-right:18px;');
		$('#nbso-isjd img').attr('class', 'nbso-onoff off');
		$('#nbso-istb img').attr('class', 'nbso-onoff off');
		$('#nbso-ispdd img').attr('class', 'nbso-onoff off');
		$('#nbso-isvip img').attr('class', 'nbso-onoff off');
		$('.nbso-onoff-span').attr('style', '');
		$('#is_jd').html('0');
		$('#is_pdd').html('0');
		$('#is_vip').html('0');
		$('#is_tb').html('0');
		var this_class = $('#nbso-issn img').attr('class');
		if (this_class == 'nbso-onoff off') {
			$('#nbso-issn img').attr('class', 'nbso-onoff');
			$(this).find('span').attr('style', 'color: #F40;');
			$('#is_sn').html('1');
			$('.menu-li').attr('style','pointer-events: none;color: #bbb;');
			$('.menu-li').removeClass('active');
			$('#is_tb').html('0');
			$('#is_jd').html('0');
			$('#is_pdd').html('0');
			$('#is_vip').html('0');
			$('#is_site').html('0');
			$('.is_site').attr('style','pointer-events: none;color: #bbb;');
			$('.is_site').removeClass('active');
			$('.is_tm').attr('style','');
			$('.is_by').attr('style','');
			$('.is_tm').html('自营');
			$('.is_by').html('拼购');
			make_post_set();
		}
	});
	$("#nbso-isjd").click(function() {
		$('#index').html('2');
		$('#indexname').html('nbso-isjd');
		$('.nb_list').removeClass('nb_list_tb');
		$('.nb_list').removeClass('nb_list_pdd');
		$('.nb_list').removeClass('nb_list_jd');
		$('.nb_list').removeClass('nb_list_sn');
		$('.nb_list').removeClass('nb_list_vip');
		$('.sobtn').removeClass('active');
		$('.sobtn').removeClass('active-tb');
		$('.sobtn').removeClass('active-pdd');
		$('.sobtn').removeClass('active-jd');
		$('.sobtn').removeClass('active-sn');
		$('.sobtn').removeClass('active-vip');
		$(this).addClass('active');
		$(this).addClass('active-jd');
		//$('.nb_list').addClass('nb_list_jd');

		$('.sobtn').removeClass('active');$(this).addClass('active');
		$('#nbso-isq').attr('style','padding-right: 15px;');
		again();
		$(this).attr('style','margin-right:18px;pointer-events: none;');
		$('#nbso-istb').attr('style','margin-right:18px;');
		$('#nbso-ispdd').attr('style','margin-right:18px;');
		$('#nbso-issn').attr('style','margin-right:18px;');
		$('#nbso-isvip').attr('style','margin-right:18px;');
        $('#nbso-isvip img').attr('class', 'nbso-onoff off');
		$('#nbso-ispdd img').attr('class', 'nbso-onoff off');
		$('#nbso-issn img').attr('class', 'nbso-onoff off');
		$('#nbso-istb img').attr('class', 'nbso-onoff off');
		$('.nbso-onoff-span').attr('style', '');
		$('#is_jd').html('0');
		$('#is_pdd').html('0');
		$('#is_vip').html('0');
		$('#is_sn').html('0');
		var this_class = $('#nbso-isjd img').attr('class');
		if (this_class == 'nbso-onoff off') {
			$('#nbso-isjd img').attr('class', 'nbso-onoff');
			$(this).find('span').attr('style', 'color: #F40;');
			$('#is_jd').html('1');
			$('.menu-li').attr('style','pointer-events: none;color: #bbb;');
			$('.menu-li').removeClass('active');
			$('#is_tb').html('0');
			$('#is_pdd').html('0');
			$('#is_vip').html('0');
			$('#is_sn').html('0');
			$('.is_site').attr('style','');
			$('.is_tm').attr('style','');
			$('.is_by').attr('style','');
			$('.is_tm').html('自营');
			$('.is_by').html('爆款');
			make_post_set();
		}
	});
	$("#nbso-ispdd").click(function() {

		        $('#index').html('1');

		$('#indexname').html('nbso-ispdd');
		$('.nb_list').removeClass('nb_list_tb');
		$('.nb_list').removeClass('nb_list_pdd');
		$('.nb_list').removeClass('nb_list_jd');
		$('.nb_list').removeClass('nb_list_sn');
		$('.nb_list').removeClass('nb_list_vip');
		$('.sobtn').removeClass('active');
		$('.sobtn').removeClass('active-tb');
		$('.sobtn').removeClass('active-pdd');
		$('.sobtn').removeClass('active-jd');
		$('.sobtn').removeClass('active-sn');
		$('.sobtn').removeClass('active-vip');
		$(this).addClass('active');
		$(this).addClass('active-pdd');
		//$('.nb_list').addClass('nb_list_pdd');


		$('#nbso-isq').attr('style','padding-right: 15px;');
		again();
        $(this).attr('style','margin-right:18px;pointer-events: none;');
		$('#nbso-istb').attr('style','margin-right:18px;');
		$('#nbso-isjd').attr('style','margin-right:18px;');
		$('#nbso-isvip').attr('style','margin-right:18px;');
		$('#nbso-issn').attr('style','margin-right:18px;');
        $('#nbso-isvip img').attr('class', 'nbso-onoff off');
		$('#nbso-isjd img').attr('class', 'nbso-onoff off');
		$('#nbso-istb img').attr('class', 'nbso-onoff off');
		$('#nbso-issn img').attr('class', 'nbso-onoff off');
		$('.nbso-onoff-span').attr('style', '');
		$('#is_jd').html('0');
		$('#is_pdd').html('0');
		$('#is_vip').html('0');
		$('#is_sn').html('0');
		var this_class = $('#nbso-ispdd  img').attr('class');
		if (this_class == 'nbso-onoff off') {
			$('#nbso-ispdd img').attr('class', 'nbso-onoff');
			$(this).find('span').attr('style', 'color: #F40;');
			$('#is_pdd').html('1');
			$('.menu-li').attr('style','pointer-events: none;color: #bbb;');
			$('.menu-li').removeClass('active');
			$('#is_tb').html('0');
			$('#is_jd').html('0');
			$('#is_vip').html('0');
			$('#is_sn').html('0');
			$('.is_tm').html('天猫');
			$('.is_by').html('包邮');
			make_post_set();
		}
	});
	$("#nbso-istb").click(function() {

		        $('#index').html('0');


		$('#indexname').html('nbso-istb');
		$('.nb_list').removeClass('nb_list_tb');
		$('.nb_list').removeClass('nb_list_pdd');
		$('.nb_list').removeClass('nb_list_jd');
		$('.nb_list').removeClass('nb_list_sn');
		$('.nb_list').removeClass('nb_list_vip');
		$('.sobtn').removeClass('active');
		$('.sobtn').removeClass('active-tb');
		$('.sobtn').removeClass('active-pdd');
		$('.sobtn').removeClass('active-jd');
		$('.sobtn').removeClass('active-sn');
		$('.sobtn').removeClass('active-vip');
		$(this).addClass('active');
		$(this).addClass('active-tb');
		//$('.nb_list').addClass('nb_list_tb');


		$('#nbso-isq').attr('style','padding-right: 15px;');
		again();
        $(this).attr('style','margin-right:18px;pointer-events: none;');
		$('#nbso-isjd').attr('style','margin-right:18px;');
		$('#nbso-ispdd').attr('style','margin-right:18px;');
        $('#nbso-isvip').attr('style','margin-right:18px;');
		$('#nbso-sn').attr('style','margin-right:18px;');
				$('.menu-li').attr('style', '');
                $('#nbso-isjd img').attr('class', 'nbso-onoff off');
                $('#nbso-ispdd img').attr('class', 'nbso-onoff off');
				$('#nbso-isvip img').attr('class', 'nbso-onoff off');
				$('#nbso-issn img').attr('class', 'nbso-onoff off');
                $('.nbso-onoff-span').attr('style', '');
                $('#is_jd').html('0');
                $('#is_pdd').html('0');
				$('#is_vip').html('0');
				$('#is_sn').html('0');
                var this_class = $('#nbso-istb  img').attr('class');
                if (this_class == 'nbso-onoff off') {
                    $('#nbso-istb img').attr('class', 'nbso-onoff');
                    $(this).find('span').attr('style', 'color: #F40;');
                    $('#is_tb').html('1');
                    $('.menu-li').removeClass('active');
                    $('#is_pdd').html('0');
                    $('#is_jd').html('0');
					$('#is_vip').html('0');
					$('#is_sn').html('0');
                    $('.is_tm').html('天猫');
                    $('.is_by').html('包邮');
                    make_post_set();
                }
            });

});
</script>

<nav id="menu">
	<div id="menu_div">
		<ul>
			<li><span>宝贝来源和服务</span></li>
			<div class="menu-div">
				<ul class="menu-ul">
					<li class="menu-li is_site " onclick="is_any('is_site');"><a href="javascript:">站内精选</a></li>
					<li class="menu-li is_tm" onclick="is_any('is_tm');"><a href="javascript:">天猫</a></li>
					<li class="menu-li is_by" onclick="is_any('is_by');"><a href="javascript:">包邮</a></li>
					<li class="menu-li is_ht" onclick="is_any('is_ht');"><a href="javascript:">海淘</a></li>
					<li class="menu-li is_xfzbz" onclick="is_any('is_xfzbz');"><a href="javascript:">消费者保障</a></li>
					<li class="menu-li is_tkld" onclick="is_any('is_tkld');"><a href="javascript:">退款率低</a></li>
					<li class="menu-li is_hplg" onclick="is_any('is_hplg');"><a href="javascript:">好评率高</a></li>
					<li class="menu-li is_zhlg" onclick="is_any('is_zhlg');"><a href="javascript:">转化率高</a></li>
					<li class="menu-li is_tbjp" onclick="is_any('is_tbjp');"><a href="javascript:">淘宝金牌卖家</a></li>
					<li class="menu-li is_pyby " onclick="is_any('is_pyby');"><a href="javascript:">偏远包邮</a></li>
				</ul>
			</div>
			<!--li><span>专题栏目选择</span></li>
            <div class="menu-div">
            <ul class="menu-ul">
                    <li class="menu-li qtz_3756" onclick="is_qtz('3756');"><a href="javascript:">好券直播</a></li>
                    <li class="menu-li qtz_3786" onclick="is_qtz('3786');"><a href="javascript:">品牌券</a></li>
                    <li class="menu-li qtz_13366" onclick="is_qtz('13366');"><a href="javascript:">高佣榜</a></li>
                    <li class="menu-li qtz_9660" onclick="is_qtz('9660');"><a href="javascript:">大额券</a></li>
                    <li class="menu-li qtz_4093" onclick="is_qtz('4093');"><a href="javascript:">潮流范</a></li>
                    <li class="menu-li qtz_4092" onclick="is_qtz('4092');"><a href="javascript:">有好货</a></li>
            </ul>
            </div-->
			<li><a href="javascript:">价格区间&nbsp;&nbsp;(元)</a></li>
			<div class="menu-div">
				<input type="number" class="menu-input inline" name="so_fee_1" id="so_fee_1" value="" placeholder="最低价">
				<span class="inline menu-span"> - </span>
				<input type="number" class="menu-input inline" name="so_fee_2" id="so_fee_2" value="" placeholder="最高价">
			</div>

			<!--
            <li><a href="javascript:">收入比率区间&nbsp;&nbsp;(%)</a></li>
            <div class="menu-div">
            <input type="number" class="menu-input inline" name="so_bl_1" id="so_bl_1" value="" placeholder="最低比例">
            <span class="inline menu-span"> - </span>
            <input type="number" class="menu-input inline" name="so_bl_2" id="so_bl_2" value="" placeholder="最高比例">
            </div>
            -->

			<div class="menu-foot">
				<div class="menu-foot-btn-l" onclick="reset();">重置</div>
				<a href="#mm-0" class="menu-foot-btn-r mm-slideout" style="color:#fff;" onclick="setok();"><div>确认</div></a>
			</div>
		</ul>
	</div>
</nav>
<!--nav-->
<!--搜索框-->
<style>
.nbso_main{
 padding: 0;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    z-index: 99999999;
    top: 0;
    left: 0;
    background: #eee;
    max-width: 640px;
    right: 0;
}
.nbso_div{
    padding: 15px 5px;
}
.sug-li{
padding: 8px 15px;
    background: #fff;
    margin-bottom: 1px;
    color: #999;
    font-size: 13px;
}
.sug-main{
background: rgb(238, 238, 238);
    z-index: 999999 !important;
    display: block;
    overflow: hidden;
    position: fixed;
    width: 100%;
}
.sug-menu-li{
    width: auto;
    display: inline-block;
    text-align: center;
    background: #eee;
    margin: 0.44rem 0.21rem;
    font-size: 11px;
    border-radius: 3px;
    padding: 0px 10px;
    max-width: 40%;
    overflow: hidden;
    height: 28px;
    line-height: 28px;
}
.sug-menu-li a{
    color: #888;
}
.icon-pic{
width: 13px;height:13px;vertical-align: middle;margin-right: 3px;margin-bottom:2px;
border-radius: 3px;
}
.del{
    position: absolute;
    top: 0;
    right: 66px;
}
.copybox {
    margin: 0 auto;
	display: block;
    width: 95%;
    left: 0;
    top: 0;
    resize: none;
    overflow: auto;
    padding: 5% 5% 5% 5%;
    background: rgba(243, 243, 243, 0.9);
    -webkit-user-select: text;
    -webkit-user-select: all;
    user-select: all;
    color: #333;
    text-align: center;
    z-index: 10;
    ime-mode: disabled;
    line-height: 20px;
    font-size: 13px;
    display: block;
    text-align: left;
    height:8.8rem;
    border-style: none;
    border-radius: 8px;
    letter-spacing: 0.3px;
    -webkit-user-select: text;
    -webkit-appearance: textarea;
    outline: none;
    margin-top:5px;
	margin-bottom:5px;
}
.layui-layer-btn {
    text-align: center;
    padding: 0 10px 12px;
    pointer-events: auto;
}
.layui-layer-btn .layui-layer-btn0 {
    border-color: #f5685a;
    background-color: #f5685a;
    color: #fff;
}
.layui-layer-hui {
    min-width: 100px;
    background-color: #000;
    filter: alpha(opacity=66);
    background-color: rgba(0,0,0,.66);
    color: #fff;
    border: none;
}
</style>
<div class="nbso_main" style="display:block;">
	<div class="search">
		<div class="so_l" onclick="$('.nbso_main').hide(345);"><img src="./addons/bsht_tbk/res/images/nbso-cl3.png" style="width:18px;vertical-align: middle;margin-bottom:3px;"></div>
		<div style="width:auto;display:inline-block;">
			<form class="input_form" onsubmit="return false;" id="myform" action="#">
				<input placeholder="请输入商品标题或关键字" type="search" name="keyword" id="keyword" class="so_key_in" autocomplete="off" value="" style="ime-mode:auto;">
				<span class="del" style="display:none;"><img src="./addons/bsht_tbk/res/images/nbso-cl.png" style="width:15px;vertical-align: middle;margin-bottom:2px;"></span>
			</form>
		</div>
		<div class="so_r" onclick="make_post_set_his();"><img src="./addons/bsht_tbk/res/images/nbso-goso.png" style="width:18px;vertical-align: middle;margin-bottom:3px;"></div>
	</div>
	<div class="suggest2 dropdown2 sug-main">
		<ul class="dropdown-menu2" id="suggest2" style="padding-left: 0px;">

		</ul>
	</div>
	<div class="nbso_div">
		<ul class="mm-listview">

			<!--1:1-->
			<div style="text-align: center;padding-bottom:15px;">
				<!-- <div style="text-align:left;"><li class="mm-listitem" style="padding-bottom:10px;"><span class="mm-listitem__text" style="color:#666;">内容转换</span>
                                    <span class="sp_link_help"><img src="./addons/bsht_tbk/res/images/nbso-help.png" style="width:16px;vertical-align: middle;margin-right: 23px;"></span>
                                    </li></div> -->
				<!-- <textarea class="copybox" id="copybox" autoheight="true" placeholder="请输入要1:1转换的文案内容、支持多种平台，如仅需查券或搜索请使用上方输入框搜索或点击查券进行超级搜索"></textarea>
                 -->

				<!--tb_tools-->
				<!-- <p style="font-size:11px;color:#999;">勾选TB特殊转链，若产品参加了该活动可领取对应优惠</p>
                <div class="sug-menu-li tbsp" style="border:1px solid #666;background:#fff;" id="sign">
                   <a href="javascript:" style="color:#666;"><i class="iconfont icon-hongbao" style="margin-right:3px;vertical-align: sub;"></i>签到红包</a>
                </div> -->

				<!--div class="sug-menu-li tbsp" style="border:1px solid #666;background:#fff;" id="fg">
                   <a href="javascript:" style="color:#666;"><i class="iconfont icon-fan" style="margin-right:3px;vertical-align: sub;"></i>超值买返购</a>
                </div-->

				<!-- <div class="sug-menu-li tbsp" style="border:1px solid #666;background:#fff;" id="kz">
                   <a href="javascript:" style="color:#666;"><i class="iconfont icon-fan" style="margin-right:3px;vertical-align: sub;"></i>快站口令</a>
                </div>

                <div class="sug-menu-li tbsp" style="border:1px solid #666;background:#fff;" id="bybt">
                   <a href="javascript:" style="color:#666;"><i class="iconfont icon-butie" style="margin-right:3px;vertical-align: sub;"></i>百亿补贴</a>
                </div> -->

				<br>
				<style>
.sp_active{
  background:#f50 !important;
  border:1px solid #fff !important;
}
.sp_active a{
  color:#fff !important;
}
</style>
				<script>
var tbsp = '';
$(".tbsp").click(function(){
    var thisid = $(this).attr('id');
	console.log("tbsp::::",thisid);
	$('.tbsp').removeClass('sp_active');
	if (tbsp == thisid) {
	  $('#'+thisid).removeClass('sp_active');
	  tbsp = '';
	}else{
	  $('#'+thisid).addClass('sp_active');
	  tbsp = thisid;
	}
});
</script>
				<!--tb_tools-->

				<!-- <div class="sug-menu-li sp_link_del" style="background:#f55a5a !important;">
                   <a href="javascript:" style="color:#fff;"><img src="./addons/bsht_tbk/res/images/sp_link_del.png" style="height: 13px;vertical-align: middle;margin-right: 3px;">清空</a>
                </div>

                <div class="sug-menu-li sp_link_go" style="background:#f5a85a !important;margin-left:20px;margin-right:5px;">
                   <a href="javascript:" style="color:#fff;"><img src="./addons/bsht_tbk/res/images/sp_link_go.png" style="height: 10px;vertical-align: middle;margin-right: 3px;">转换</a>
                </div>

                <div class="sug-menu-li sp_link_cha" style="background:#59b353 !important;margin-left:5px;margin-right:20px;">
                   <a href="javascript:" style="color:#fff;"><img src="./addons/bsht_tbk/res/images/sp_link_cha.png" style="height: 13px;vertical-align: middle;margin-right: 3px;">查券</a>
                </div>

                <div class="sug-menu-li sp_link_copy" style="background:#5ab5f5 !important;">
                   <a href="javascript:" style="color:#fff;"><img src="./addons/bsht_tbk/res/images/sp_link_copy.png" style="height: 12px;vertical-align: middle;margin-right: 3px;">复制</a>
                </div> -->


			</div>
			<!--1:1-->

			<div id="his_div" style="padding-bottom:15px;display:none;">
				<li class="mm-listitem" style="padding-bottom:10px;" onclick="del_his();"><span class="mm-listitem__text" style="color:#666;">搜索历史</span><span><img src="./addons/bsht_tbk/res/images/nbso-del.png" style="width:14px;vertical-align: middle;margin-right: 25px;"></span></li>
				<div class="menu-div mm-listitem">
					<ul class="menu-ul" id="his">

					</ul>
				</div></div>
			<!-- <li class="mm-listitem" style="padding-bottom:10px;" onclick="rand_hot();"><span class="mm-listitem__text" style="color:#666;">热门推荐</span><span><img src="./addons/bsht_tbk/res/images/nbso-rand.png" style="width:14px;vertical-align: middle;margin-right: 25px;" class="hotbtn"></span></li> -->
			<div class="menu-div mm-listitem">
				<ul class="menu-ul" id="hot">

				</ul>
			</div>
		</ul>
	</div>
</div>
<script>
$("#keyword").focus(function(){
    $(this).parent().children(".del").show();
});
$("#keyword").blur(function(){
    if($(this).val()=='')
    {
        $(this).parent().children(".del").hide();
    }
});
$(".del").click(function(){
    $(this).parent().find('input').val('');
    $(this).hide();
	$('.suggest2').hide();
	setTimeout(function() {
            $("#keyword").focus();
        }, 333);
});


//1:1转链
$(".sp_link_help").click(function(){
//     layer.msg('支持格式如下：<br><div style="text-align:left;margin-top:5px;font-size: 13px;color: #eee;">淘宝口令+文案<br>京东文案+短连接<br>拼多多文案+短连接<br>唯品会文案+短连接<br>苏宁文案+短连接</div>', {
//   time: 99999,
//   btn: ['我知道了']
//   ,yes: function(){
//     layer.closeAll();
//   }});
});

$(".sp_link_del").click(function(){
    $("#copybox").val('');
	layer.msg('内容已清空', {
       time: 1500
    });
	setTimeout(function() {
            $("#copybox").focus();
        }, 333);
});


$(".sp_link_copy").click(function(){
    var cp_txt = $("#copybox").val();
	if(cp_txt == ''){
	   layer.msg('暂无任何内容', {
       time: 1500
       });
	}else{
	   var clipboard = new ClipboardJS('.sp_link_copy', {
            text: function (target) {
              return cp_txt;
            }
       });
	   clipboard.on('success', function (e) {
       layer.closeAll();
       layer.msg('内容复制成功', {
          time: 1500
       });
       e.clearSelection();
       clipboard.destroy();
       });
	   clipboard.on('error', function (e) {
       layer.msg('复制失败，请手工复制', {
          time: 1500
       });
       });
	}
});

$(".sp_link_cha").click(function(){
    var cp_txt = $("#copybox").val();
	if(cp_txt == ''){
	   layer.msg('暂无任何内容', {
       time: 1500
       });
	}else{
	   $('#keyword').val(cp_txt);
	   make_post_set_his();
	}
});

$(".sp_link_go").click(function(){
    var cp_txt = $("#copybox").val();
	if(cp_txt == ''){
	   layer.msg('暂无任何内容', {
       time: 1500
       });
	}else{
	//    var out = nbcopy(cp_txt);
	//    var type_n = out[0];
		var type_n=0;
	   if(type_n == 0 || type_n == 1){
	      var type = 'tb';
	   }
	   if(type_n == 2){
	      var type = 'jd';
	   }
	   if(type_n == 3){
	      var type = 'pdd';
	   }
	   if(type_n == 4){
	      var type = 'vip';
	   }
	   if(type_n == 5){
	      var type = 'sn';
	   }
	   var uid = '';
	   var shopid = '0';
	//    alert("sp_link_go");
	   var sp_link_post = "http://"+prourlhuanzi+"/officialAccount/getMaterialOptional?i=2&c=entry&do=nb_openapi&m=bsht_tbk&type="+type+"&op=nbde&sc=tonnyc";
	   var index = layer.load(1, {
         shade: [0.1,'#fff'] //0.1透明度的白色背景
       });
	   //go
       $.ajax({
            type: "post",
			data:{uid:uid,shopid:shopid,data:cp_txt,tbsp:tbsp},
			url: sp_link_post,
            dataType: 'json',
            success: function (dat) {
			  if(dat.status == 1 && dat.re_txt != ''){
			      layer.closeAll();
				  layer.msg('转换成功', {
                    time: 1500
                  });
                  $("#copybox").val('');
				  setTimeout(function() {
                     $("#copybox").val(dat.re_txt);
                  }, 888);
			  }else{
			      layer.closeAll();
				  layer.msg('转换失败', {
                    time: 1500
                  });
			  }
			}
	   });
	   //go
	}
});
//1:1转链
</script>
<script>
$("#keyword").bind('input propertychange', function() {
	var key=$(this).val();
if(key){
// alert("suggest.taobao.com");
//auto
    key = $.trim(key);
	$('.suggest2').hide();
	$('#suggest2').hide();
	     $.ajax({
             type: "get",
             async: false,
             url: "http://suggest.taobao.com/sug?&code=utf-8&q="+key,
             dataType: "jsonp",
             jsonp: "callback",
             success: function(json){
                 if(json.result){
				 var qarrLen = json.result.length;
				 //alert(qarrLen);
				 if(qarrLen<1 || qarrLen==0){
				 $('.suggest2').hide();
				 $('#suggest2').hide();
				 return;
				 }
				 //alert(qarrLen);
				 var resultq = '';
				 for (var i = 0; i < qarrLen; i++) {
				    resultq += '<a href="javascript:;" onclick="nbsosq(this)" name="'+json.result[i][0]+'" style="text-decoration: none;"><li style="list-style-type:none;" class="sug-li">'+json.result[i][0]+'</li></a>';
				 }
				 $('#suggest2').html(resultq);
				 $('.suggest2').show();
				 $('#suggest2').show();
				 }else{
				 $('.suggest2').hide();
				 $('#suggest2').hide();
				 }
				 //alert(json.result);
				 //$('.suggest').show();
             },
             error: function(){
                 $('.suggest2').hide();
				 $('#suggest2').hide();
             }
         });
}
});
$('#myform').bind('search', function () {
	// alert("myform");
    var ckkey = $('#keyword').val();
	if(ckkey){
	$('#html').html('');
	make_post_set_his();
	}else{
	layer.msg('请输入关键字', {
    time: 1500
    });
	}
});
//auto
</script>
<!--搜索框-->
<!--share提示-->
<!-- <script type="text/javascript" src="./addons/bsht_tbk/res/js/html2canvas.min2.js"></script>
<script type="text/javascript" src="./addons/bsht_tbk/res/js/pictobase64.js"></script>
<script type="text/javascript" src="./addons/bsht_tbk/res/js/jquery.qrcode.min.js"></script>

<div class="loadingbar3" style="display:none">
<div class="loading3"><img src="./addons/bsht_tbk/res/images/loading2.gif" style="width: 45px;height: 45px;"><br>生成中，请稍后<br></div>
</div>
<div class="share_bak share">
  <div class="hb-menu" onclick="$('.share_bak').fadeOut();">
      <img src="./addons/bsht_tbk/res/images/qtz_list_close.png" style="width:30px;height:30px">
  </div>
  <div id="share" class="share_div">
   <img class="article-page-banner" src="./addons/bsht_tbk/res/images/nbso_fx.jpg" id="share_pic">
   <div style="padding-top: 18px;">「&nbsp; --&nbsp;」</div>
   <div style="margin-top:10px;width:100px;padding:10px;" id="qrcode"></div>
   <div class="share_tip">长按扫码 查看详情<br><span>热度：8704</span></div>
  </div>
  <div id="share_to" class="share_div_to">
      <img class="article-page-banner" src="" id="share_pic_to">
  </div>
</div>
<script>
function go_share(){
     $('.share_bak').hide();
     $('.loadingbar3').show();
     var ckpic = $('#share_pic_to').attr('src');

     if(ckpic != ''){
            $('.share_bak').show();
            $('#share').hide();
            $('#share_to').show();
            $('.loadingbar3').hide();
     }else{

     $('.share_bak').show();
     $('#share').show();


     var pic = $('#share_pic').attr('src');
     console.log(pic);
     var url = "http://"+prourlhuanzi+"/officialAccount/getMaterialOptional?c=entry&i=2&m=318468_YnNodF90Yms%3D_tgfuas&do=nbso&nb_shopid=0&keyword=NktLYzVhMlE%3D&shopid=0&nbnice=1&b64=1";
     $.ajax({
            type: "get",
            url: "http://"+prourlhuanzi+"/officialAccount/getMaterialOptional?i=2&c=entry&do=pic2base&m=bsht_tbk&pic="+encodeURIComponent(pic)+"&url="+encodeURIComponent(url),
            dataType: "json",
            success: function(data) {
                if(data.status == 1){
                  $('#share_pic').attr('src',data.info);


                  if(data.surl == ''){
                  //nburl
                  var i = "2";
                  var post = "http://"+prourlhuanzi+"/n.php?i="+i+"&url="+encodeURIComponent(url);
$.ajax({
        url: post,
        dataType: 'text',
        jsonp: 'callback',
        success: function (dat) {
           if(dat!=''){
                jQuery('#qrcode').qrcode(dat);
                //doit
     html2canvas(document.querySelector("#share")).then(canvas => {
           document.body.appendChild(canvas);
            var base64pic = canvas.toDataURL();
            $('#share').hide();
            $('#share_to').show();
            $('#share_pic_to').attr('src',base64pic);
            $('canvas').hide();
            $('.loadingbar3').hide();
            layer.msg('长按图片，发送好友');
      });
       //doit
           }else{
                  layer.msg('生成失败');
                   $('.loadingbar3').hide();
           }
        }
});
//nburl
                  }else{
                    jQuery('#qrcode').qrcode(data.surl);
                    //doit
     html2canvas(document.querySelector("#share")).then(canvas => {
           document.body.appendChild(canvas);
            var base64pic = canvas.toDataURL();
            $('#share').hide();
            $('#share_to').show();
            $('#share_pic_to').attr('src',base64pic);
            $('canvas').hide();
            $('.loadingbar3').hide();
            layer.msg('长按图片，发送好友');
      });
       //doit
                  }
                }else{
                   layer.msg('生成失败');
                   $('.loadingbar3').hide();
                }
            }
     });

     }

}
</script> -->
<!--share提示-->


<script>

function throttle(page, gapTime) {
	if (gapTime == null || gapTime == undefined) {
		gapTime = 666;
	}
	var _lastTime = null;

	return function() {
		var _nowTime = +new Date()
		if (_nowTime - _lastTime > gapTime || !_lastTime) {
			page.apply(this, arguments)
			_lastTime = _nowTime
		}
	}
}
function ft(i) {
	return i >= 1e4 && i < 1e5 ? Math.round(i / 1e4 * 10) / 10 + "&#x4E07;" : i >= 1e5 ? Math.round(i / 1e4) + "&#x4E07;" : i
}
function reload(){
  $('.so_r img').removeClass('xzdh');
  setTimeout(function() {
  $('.so_r img').addClass('xzdh');
  }, 1);
  $("#stop").html('0');
  $("#page").html('1');
  $('#html').html('');
  $('#html').html('<div style="width:100%;text-align: center;padding-top:50px;" id="iidpic"><img src="./addons/bsht_tbk/res/v3/images/loading-1.svg" class="nbloadingsvg"></div>');
  make_post_set();
}
function so_his(obj){
 var key = obj.id;
 if(key){
 $('#html').html('');
 $('#html').html('<div style="width:100%;text-align: center;padding-top:50px;" id="iidpic"><img src="./addons/bsht_tbk/res/v3/images/loading-1.svg" class="nbloadingsvg"></div>');
 $("#stop").html('0');
 $("#page").html('1');
 $('#keyword').val(key);
 $('#key').html(key);
 $('.so_key').html(key);
 his_sync(key);
 make_post_set();
 }
}
function rand_hot(){
$('.hotbtn').removeClass('xzdh');
setTimeout(function() {
$('.hotbtn').addClass('xzdh');
}, 1);
$('#hot').css('display','none');
$('#hot').removeClass('topdh1');
$('#hot').removeClass('topdh2');
$('#hot').removeClass('topdh3');
$('#hot').removeClass('topdh4');
// 热门推荐
//         $.ajax({
//             type: "get",
// 			url:"http://"+prourlhuanzi+"/addons/bsht_tbk/rand.php",
//             success:function(data){
//                  $('#hot').css('display','block');
// 				 var rand = Math.ceil(Math.random()*10);
// 				 if(rand>0 && rand<=3){
// 				 $('#hot').addClass('topdh1');
// 				 }
// 				 if(rand>3 && rand<=5){
// 				 $('#hot').addClass('topdh2');
// 				 }
// 				 if(rand>5 && rand<=7){
// 				 $('#hot').addClass('topdh3');
// 				 }
// 				 if(rand>7 && rand<=10){
// 				 $('#hot').addClass('topdh4');
// 				 }
// 				 data = JSON.parse(data);
// 				 var tickets_array = data.tickets;
//                  var tickets_list_array = data.tickets_list;
// 				 var tickets_list_en_array = data.tickets_list_en;
// 				                  var str = '';
// 				 				 //console.log(data);
//                  for(var i=0;i<17;i++){
//                      var key = tickets_array[i];
//                      var tickets_name = tickets_list_array[key];
// 					 var tickets_name_en = tickets_list_en_array[key];
//                      var agent_pname = "";
//                           str += '<li class="sug-menu-li" onclick="so_his(this);" id="'+decodeURIComponent(tickets_name)+'"><a href="javascript:">'+decodeURIComponent(tickets_name)+'</a></li>';
//                  }
//                  $('#hot').html(str);

//             }
// });
}

function GetRequest_str(url, name) {
	// alert("GetRequest_str");
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
    if (typeof url != 'undefined') {
        url = url.replace('?id=', '?fix=1&id=');
        url = url.replace('?sku=', '?fix=1&sku=');
        url = url.replace('?wareId=', '?fix=1&wareId=');
        var r = url.substr(1).match(reg);
    } else {
        var r = null;
    }
    var context = "";
    if (r != null)
        context = r[2];
    reg = null;
    r = null;
    return context == null || context == "" || context == "undefined" ? "" : context;
}

function list(obj){
var cid = obj.name;
$("#cid").html(cid);
$("#stop").html('0');
$("#capage").html('');
loadlist(1);
}

loadlist = throttle(function(page) {
	$('.active2').addClass('active');
	$('.active2').removeClass('active2');

	console.log('loadlist start');
	layer.closeAll();
	var ckstop = $("#stop").html();
	  if(ckstop == 1 || ckstop == '1'){
	return false;
	  }
	var fm = "";
	var capage = $("#capage").html();
	console.log("capage:"+capage);
	if (page == 1 || page == '1') {
		$('#html').html('<div style="width:100%;text-align: center;padding-top:50px;" id="iidpic"><img src="./addons/bsht_tbk/res/v3/images/loading-1.svg" class="nbloadingsvg"></div>');
		$("#capage").html('');
	}else{
	    if(page==999){
		$("#capage").html('');
		return false;
		}else{
		var page = $("#page").html();
		        if (page != 1 && page != '1') {
				$('.nb_progress').show();
				$('.nb_progress').removeClass("progress");
				$('.nb_progress').addClass("progress");
				}
		}
	}
	var cid = $("#cid").html();
	var skin = 1;
	console.log("" + cid+cid);
	if(capage!=''){
	   console.log('ca over');
	   $("#capage").html('');
	}else{
		var post_val = $('#post_set').val();
		var is_vip = $('#is_vip').html();
		var is_sn = $('#is_sn').html();
		//console.log("post_val:"+post_val);
		console.log("loadlist = throttle- 1656 -"+"post_val:"+post_val);
	var bc_iid = '';
	var pdd_surl = '';
	$.ajax({
                type: "get",
                url: "http://"+prourlhuanzi+"/officialAccount/getMaterialOptional?i=2&c=entry&do=nbso_ajax&m=bsht_tbk&shopid=0&spadmin=0&bc_iid="+bc_iid+"&is_vip="+is_vip+"&is_sn="+is_sn+"&size=20&fm="+fm+"&pdd_surl="+pdd_surl+"&page="+page+""+post_val,
                dataType: "json",
                success: function(data) {
				   console.log('loadlist ajax over');
				   if(data.num==0){
					   alert("---");
					   var stop = $("#stop").html();
					   if(stop!='1'){

						  var ck_page = $('#page').html();
						  var ck_site = $('#is_site').html();
						  var ck_tb = $('#is_tb').html();

						  if(ck_page == 1 && ck_site == 1 && ck_tb == 1){
						      setTimeout('$(".nb_progress").hide();$("#iidpic").hide();var intxt = "<div style=width:100%;text-align:center;padding-top:10px;color:#999;>暂无更多精选宝贝，以下是全网商品(￣▽￣)~*</div>";$("#html").append(intxt);', 666);
					          $("#is_site").html('0');
							  $("#stop").html('0');
							  $("#page").html('1');
    setTimeout(function() {
    console.log('to load again');
    make_post_set();
    },889);
	setTimeout(function() {
    $("#is_site").html('1');
	$(".is_site").addClass('active');
    },1500);
	return false;

						  }

					     setTimeout('$(".nb_progress").hide();$("#iidpic").hide();var intxt = "<div style=width:100%;text-align:center;padding-top:30px;color:#999;>暂无更多数据 (•́へ•́╬)</div>";$("#html").append(intxt);', 666);
					     $("#stop").html('1');
					   }else{
					   $(".nb_progress").hide();$("#iidpic").hide();
					   }
				   }else{
				   var ckjd = $('#is_jd').html();
				   //sn
                   var cksn = $('#is_sn').html();
				   //sn
				   if(data.num<=19 && ckjd != 1){
				      if(cksn ==1){

					  }else{
					  setTimeout(function() {
                           $(".nb_progress").hide();
                           $("#iidpic").hide();
						   var intxt = "<div style='width:100%;text-align:center;padding-top:10px;color:#999;' id='tou'>数据已经到头啦 (•́へ•́╬)</div>";
						   $("#html").append(intxt);
                      }, 666);
					  $("#stop").html('1');
					  }
				   }

				   var list = data.content;
				   var html = '';

			//nbapp
            var siteroot = "http://"+prourlhuanzi+"/";
            var shopid = "0";
            var app_weid = "2";
            var nb_weid = "2";
			var spadmin = "0";
            //nbapp
			//bili
            var flbl_tb = "0.54";
			var fdbl_tb = "0";

			//alert(fdbl_tb);
			var fltxt = "元";
			var fdtxt = "元";
			var fltype = "2";
			var feetype = "1";
			//bili


					  for (var i = 0; i < list.length; i++) {


		//fixtt
		if(list[i]['istmall'] == 3){
		var ckis_tb = $('#is_tb').html();
		if(ckis_tb == 1 || ckis_tb == '1'){
			list[i]['istmall'] = 0;
		}
		}
		//fixtt


                            var iid = list[i]['itemid'];
                            var qfee = list[i]['qfee'];
                            var fee1 = list[i]['itemfee'];
                            var fee2t = list[i]['itemfee2'];
                            var sell = ft(list[i]['itemmsell']);
							var istmall = ft(list[i]['istmall']);
                            var yj = list[i]['shouru_yongjin'];
							var bl = list[i]['shouru_bili'];
							var istm = list[i]['istmall'];
							var fanli = yj * flbl_tb;
							if(fanli>0){
                               if(fltype==2){
								   if(feetype==2){
							   fanli = fanli*100;
							   fanli = fanli.toFixed(0);
								   }else{
							   fanli = fanli.toFixed(2);
								   }
							   }else{
							   fanli = fanli.toFixed(0);
							   }
							}
                            var spfee = yj * fdbl_tb;
							if(spfee>0){
							spfee = spfee.toFixed(2);
							}


							if(list[i]['qfee']>0){

							var qtxt = list[i]['qfee'];
							var txtq = "券后";
							var hide1 = "";
							}else{

								                            var qtxt = '';
							var txtq = "折后";
							var hide1 = 'display:none;';

							}


							if(istm==1){
							 var tmtxt = "天猫";
							}else{
							 var tmtxt = "淘宝";
							}
	var allhide = '';
	var icon = '';
	var allhide = 'display:none;';

	if(list[i]['istmall'] == 0){
	var icon = '<img src="./addons/bsht_tbk/res/images/logo_tb.png" class="icon-pic">';
		list[i]['pic'] = list[i]['pic'] +'_310x310.jpg';
	}
	if(list[i]['istmall'] == 1){
	var icon = '<img src="./addons/bsht_tbk/res/images/logo_tb.png" class="icon-pic">';
		list[i]['pic'] = list[i]['pic'] +'_310x310.jpg';
	if(fm == 'xcx'){
		list[i]['yhjurl'] = 'javascript:';
	}
	}
	if(list[i]['istmall'] == 2){
	var icon = '<img src="./addons/bsht_tbk/res/images/logo_tb.png" class="icon-pic">';
	//jurl
	var iid = list[i]['itemid'];
				var pic = encodeURIComponent(list[i]['thumbnail_pic']);
				var tit = encodeURI(list[i]['title']);
				var qfee = list[i]['qfee'];
				var fee1 = list[i]['raw_price'];
				var fee2t = list[i]['zk_price'];
				//var sell = list[i]['shop_type'];
				var fanli = list[i]['fanli'];
				var spfee = list[i]['spfee'];
				var yj = list[i]['shouru_yongjin'];
				var wenan = list[i]['wenan'];
				var qurl = list[i]['qurl'];
	//jurl
	// alert("yhjurl--jurl-1");
	list[i]['yhjurl'] = "http://"+prourlhuanzi+"/officialAccount/getMaterialOptional?i=2&c=entry&spadmin=0&op=show&shopid=0&do=view&m=nice_jd&id="+iid+"&pic="+pic+"&q="+qfee+"&f1="+fee1+"&f2t="+fee2t+"&sell="+sell+"&tit="+tit+"&fl="+fanli+"&spfee="+spfee+"&yj="+yj+"&qurl="+qurl;
		if(fm == 'xcx'){
			list[i]['yhjurl'] = 'javascript:';
		}
	}
	if(list[i]['istmall'] == 3){
	var icon = '<img src="./addons/bsht_tbk/res/images/logo_tb.png" class="icon-pic">';
	//jurl
	var iid = list[i]['itemid'];
				var pic = encodeURIComponent(list[i]['thumbnail_pic']);
				var tit = encodeURI(list[i]['title']);
				var qfee = list[i]['qfee'];
				var fee1 = list[i]['raw_price'];
				var fee2t = list[i]['zk_price'];

				//var sell = list[i]['month_sales'];
				var fanli = list[i]['fanli'];
				var spfee = list[i]['spfee'];
				var yj = list[i]['shouru_yongjin'];
				var qurl = '';
				var sign = list[i]['pdd_sign'];
				var zsid = list[i]['pdd_zsid'];
	//jurl
	// alert("yhjurl--jurl-2");
	list[i]['yhjurl'] = "http://"+prourlhuanzi+"/officialAccount/getMaterialOptional?i=2&c=entry&spadmin=0&op=show&shopid=0&do=view&m=nice_pdd&id="+iid+"&pic="+pic+"&q="+qfee+"&f1="+fee1+"&f2t="+fee2t+"&sell="+sell+"&tit="+tit+"&fl="+fanli+"&spfee="+spfee+"&yj="+yj+"&qurl="+qurl+"&sign="+sign+"&zsid="+zsid;
		if(fm == 'xcx'){
			list[i]['yhjurl'] = 'javascript:';
		}
	}

	if(list[i]['istmall'] == 4){
	var icon = '<img src="./addons/bsht_tbk/res/images/logo_tb.png" class="icon-pic">';
	//jurl
	var iid = list[i]['itemid'];

				var pic = encodeURIComponent(list[i]['itempic']);
				var tit = encodeURI(list[i]['title']);
				var qfee = list[i]['zhe'];
				var fee1 = list[i]['raw_price'];
				var fee2t = list[i]['zk_price'];

				//var sell = list[i]['month_sales'];
				var fanli = list[i]['fanli'];
				var spfee = list[i]['spfee'];
				var yj = list[i]['shouru_yongjin'];
				var bili = list[i]['shouru_bili'];
				var zhe = list[i]['zhe'];
				var qurl = '';
				txtq = "特卖价";
	//jurl
	// alert("yhjurl--jurl-3");
	list[i]['yhjurl'] = "http://"+prourlhuanzi+"/officialAccount/getMaterialOptional?i=2&c=entry&spadmin=0&op=show&shopid=0&do=view&m=nice_vip&id="+iid+"&pic="+pic+"&q="+qfee+"&f1="+fee1+"&f2t="+fee2t+"&sell="+sell+"&tit="+tit+"&fl="+fanli+"&spfee="+spfee+"&yj="+yj+"&zhe="+zhe+"&bili="+bili;
	if(fm == 'xcx'){
		list[i]['yhjurl'] = 'javascript:';
	}
	}

	if(list[i]['istmall'] == 5){
	var icon = '<img src="./addons/bsht_tbk/res/images/logo_tb.png" class="icon-pic">';
	//jurl
	var iid = list[i]['itemid'];

				var pic = encodeURIComponent(list[i]['itempic']);
				var tit = encodeURI(list[i]['title']);

				var qfee = list[i]['qfee'];
				var bid = list[i]['brandid'];
				var actid = list[i]['actid'];
				var pgid = list[i]['pgid'];
				var etime = list[i]['etime'];
				list[i]['shoptitle'] = '';
				if(bid == '0000000000'){
				list[i]['shoptitle'] = '苏宁自营';
				}else{
				if(list[i]['sn_tpcn']!=''){
					//list[i]['shoptitle'] = list[i]['sn_tpcn'];
				}
				}

				var fee1 = list[i]['raw_price'];
				var fee2t = list[i]['zk_price'];
				//var sell = list[i]['month_sales'];
				var fanli = list[i]['fanli'];
				var spfee = list[i]['spfee'];
				var yj = list[i]['shouru_yongjin'];
				var bili = list[i]['shouru_bili'];
				var zhe = list[i]['zhe'];
				var qurl = '';
				txtq = "苏宁价";
	//jurl
	// alert("yhjurl--jurl-4");
	list[i]['yhjurl'] = "http://"+prourlhuanzi+"/officialAccount/getMaterialOptional?i=2&c=entry&spadmin=0&op=show&shopid=0&do=view&m=nice_sn&id="+iid+"&pic="+pic+"&q="+qfee+"&f1="+fee1+"&f2t="+fee2t+"&sell="+sell+"&tit="+tit+"&fl="+fanli+"&spfee="+spfee+"&yj="+yj+"&bili="+bili+"&bid="+bid+"&actid="+actid+"&pgid="+pgid+"&etime="+etime;
	if(fm == 'xcx'){
		list[i]['yhjurl'] = 'javascript:';
	}
	}


	if(spfee>0){
	var nbyz = "赚"+spfee+"<span>"+fdtxt+"</span>";
	var spfeestyle = "";
	}else{
	var nbyz = "";
	var spfeestyle = "display:none;";
	spfee = 0
	}

	if(fanli>0){
	var nbfl = "奖"+fanli+"<span>"+fltxt+"</span>";
	var flstyle = "";
	}else{
	var nbfl = "";
	var flstyle = "display:none;";
	fanli = 0;
	}

	var spadmin = "0";
	var isspshow = "2";
	var isflshow = "1";

	if(spadmin != 1 || isspshow != 1){
								    var nbyz = "";
                                    var spfeestyle = "display:none;";
                                    spfee = 0;
								}

				if(isflshow != 1){
								   var nbfl = "";
                                    var flstyle = "display:none;";
                                    fanli = 0;
								}

	if(list[i]['shoptitle']){
	if(typeof list[i]['shoptitle'] != 'undefined'){
	var spname = list[i]['shoptitle'];
	if($('#is_jd').html() == 1 && $('#is_tm').html() == 1){
		spname = spname.replace('京东自营','<b><font color="#f40;">京东自营</font></b>');
		spname = spname.replace('自营','<b><font color="#f40;">自营</font></b>');
	}
	if($('#is_sn').html() == 1 && $('#is_tm').html() == 1){
		spname = spname.replace('苏宁自营','<b><font color="#f40;">苏宁自营</font></b>');
	}
	}
	var spstyle = '';
	}else{
	var spname = '';
	var spstyle = '';
	}

	if(typeof list[i]['zk_price'] != 'undefined'){
	list[i]['itemfee2'] = list[i]['zk_price'];
	}

if(spfee == 0 && fanli == 0){
			 var allhide = 'display:none;';
			}else{
			 var allhide = '';
			}


	if(typeof list[i]['st'] != 'undefined' && typeof list[i]['gyd'] != 'undefined'){
	var st = list[i]['st'];
	var gyd = list[i]['gyd'];
	}else{
	var st = '';
	var gyd = '';
	}

	if(gyd>0){
	var gydtxt = '<span style="background: #f50;color: #fff;padding: 1px 6px;border-radius: 3px">预告券</span>';
	var href = list[i]['yhjurl'];
	list[i]['yhjurl'] = href+"&gyd=1&gyd_q="+list[i]['qfee']+"&gyd_st="+st;
	}else{
	var gydtxt = '';
	}


//ys
if(typeof list[i]['ys_fee'] != 'undefined'){
   var ys = list[i]['ys_fee'];
							if(ys > 0){
							   allhide = '';
							   flstyle = "";
							   var ys_txt = list[i]['ys_txt'];
							   qtxt = "定金 "+ys+" 元";
							   nbyz = '预售';
							   nbfl = ys_txt;
							   flstyle = "";
							   txtq = '预售价';
							   var ys_data = ys_txt+'|'+list[i]['ys_stime']+'|'+list[i]['ys_etime']+'|'+list[i]['ys_wstime']+'|'+list[i]['ys_wetime']+'|'+ys;
							   var ys_p = '<p class="yuezhuan" style="right:auto;left:0;border-radius: 0 10px 0px 0;padding:2.2px 7px 2.2px 4.4px;background:linear-gradient(to left,rgba(255,113,233,.91) 0,rgba(254,92,158,.91) 100%);bottom: 0;">预售</p>';
							}else{
							   var ys_txt = '';
							   var ys_data = '';
							   var ys_p = '';
							}
}else{
   var ys_txt = '';
   var ys_data = '';
   var ys_p = '';
}
//ys

var sell_yx = '推广月销'+sell+'件';
var dw1 = '券';
var dw2 = '元';

if(list[i]['istmall'] == 4){
   if(list[i]['zhe'] > 0){
   dw1 = '享';
   dw2 = list[i]['zhe']+' 折';
   hide1 = '';
   }
   sell_yx = '市场价 ￥'+list[i]['raw_price'];
}

//sn//list[i]['sn_tpcn']
if(list[i]['istmall'] == 5){
   if(qfee == 0 && list[i]['zhe']>0){
      dw1 = '享';
      dw2 = list[i]['zhe']+' 折';
      hide1 = '';
   }
   sell_yx = list[i]['sn_tpcn'];
}
//sn

var icon_pg = '';
if(list[i]['istmall'] == 2){
   if(typeof list[i]['isPG'] != 'undefined'){
    if(list[i]['isPG'] == 1 || list[i]['isPG'] == '1'){
	   var icon_pg = '<img src="../addons/nice_jd/res/imgs/jd_ping.png" style="height:20px;vertical-align: middle;">';
	}else{
	   var icon_pg = '';
	}
  }
}

html += '<li class="row-s listpage1 animated fadeInUp"><a value="'+list[i]['yhjurl']+'" data-id="nba" ><div class="img" style="position:relative">'+ys_p+'<img src="'+list[i]['pic']+'" alt="" style="background:#f5f5f5;display:block"></div><div class="cent"><h3>'+icon+''+list[i]['title']+'</h3><div class="num col-aaa"><div class="coupon-icon" style="'+hide1+'"><span class="coupon-icon-left">'+dw1+'</span> <span class="coupon-icon-right">'+qtxt+''+dw2+'</span></div>'+gydtxt+'<span class="fr">'+sell_yx+'</span></div><div class="money col-money"><p class="fr dp-name">'+spname+'</p>'+icon_pg+''+txtq+' <span class=""><i style="padding-right:2px;">¥</i>'+list[i]['itemfee2']+'</span></div></div><div style="height:30px;'+allhide+'"><div class="fl-fee fr" style="display:none;'+flstyle+'"><img src="./addons/bsht_tbk/res/images/logo_tb.png">'+nbfl+'</div></div></a></li>';
if(list[i]['itemid'] == ""){
   if(list[i]['istmall'] == 3 || list[i]['istmall'] == 2 || list[i]['istmall'] == 4 || list[i]['istmall'] == 5){
      $('#html_one').html('<div class="html_one_close" onclick="hide_one();"><img src="./addons/bsht_tbk/res/images/logo_close.png"></div>'+html);
	  $('#html_one').fadeIn(200);
	  //html = '';
   }
}
						 
					  }

					    
						$("#html").append(html);
						$('#iidpic').hide();
						console.log('next:' + data.next);
						$("#page").html(data.next);
						var aa = $(".lazy").width();
						$(".lazy").attr("style","background:#f5f5f5;display:block;height:"+aa+"px;border-radius:4px;");
						setTimeout('$(".nb_progress").fadeOut(300);', 888);
//补查
if(data.num <= 15){
var ck_page = $('#page').html();
						  var ck_site = $('#is_site').html();
                          var ck_tb = $('#is_tb').html();
						  if(ck_page == 2 && ck_site == 1 && ck_tb == 1){
						      setTimeout('$("#tou").html("暂无更多精选宝贝，以下是全网商品(￣▽￣)~*");', 666);
							  $("#is_site").html('0');
							  $("#stop").html('0');
							  $("#page").html('1');
    setTimeout(function() {
    console.log('to load again');
    make_post_set();
    },890);
	setTimeout(function() {
    $("#is_site").html('1');
	$(".is_site").addClass('active');
    },3000);
	return false;
							  
						  }
}

				   
				   }

				}
	});
	}
	console.log('loadlist over');
}, 123);

$(window).scroll(function () {
           var htmlHeight = $(document).height();  
           var clientHeight = $(window).height(); 
           var scrollTop = $(document).scrollTop(); 
           var he = scrollTop + clientHeight;
           if (he >= htmlHeight * 0.88) {
               setTimeout(loadlist(), 1000);
           }
        });



$(document).delegate("a", "click", function (e) {
        $("#nbso_main").html('0');
		var url = $(this).attr("href");
		var capage = $('#page').html();
		if($("#html").length == 0) return;
		var nba = $(this).attr('data-id');
		if(typeof nba == 'undefined' || nba != 'nba'){
	
		//return false;
		}else{
		//点击展示详情页 	
	    document.getElementById("iframe_0").src=$(this).attr('value');
		document.getElementById("xiang_qing_ye").setAttribute("style","display:block;position: absolute; z-index: 10000; width: 100%; height: 100%;");
		document.getElementById("back_xiang_qing_ye").setAttribute("style","display:block;");
		document.getElementById("window_scroll_y").value=window.pageYOffset;
		window.scrollTo(0,0);
		
		window.localStorage.setItem("page_nbso_v3", capage);
		window.localStorage.setItem("top_nbso_v3", document.documentElement.scrollTop);
        window.localStorage.setItem("html_nbso_v3", $("#html").html());
		window.localStorage.setItem("menu_nbso_v3", $("#menu_div").html());
		window.localStorage.setItem("menu2_nbso_v3", $("#menu_nav").html());
		window.localStorage.setItem("nbso-all_nbso_v3", $(".nbso-all").html());
		window.localStorage.setItem("allset_nbso_v3", $("#all_set").html());
		window.localStorage.setItem("url_nbso_v3", window.location.href);
		console.log('isca');
		console.log('capage:'+capage);
		}
});

$("#back_xiang_qing_ye").click(function(){
	document.getElementById("xiang_qing_ye").setAttribute("style","display:none;");
	document.getElementById("back_xiang_qing_ye").setAttribute("style","display:none;");
	window.scrollTo(0,document.getElementById("window_scroll_y").value);
});



if(window.localStorage.getItem("url_nbso_v3") == window.location.href && window.localStorage.getItem("top_nbso_v3") != "null") {
        $("#html").html(window.localStorage.getItem("html_nbso_v3"));
		$("#menu_div").html(window.localStorage.getItem("menu_nbso_v3"));
		$("#menu_nav").html(window.localStorage.getItem("menu2_nbso_v3"));
		$(".nbso-all").html(window.localStorage.getItem("nbso-all_nbso_v3"));
		$("#all_set").html(window.localStorage.getItem("allset_nbso_v3"));
		$("#page").html(window.localStorage.getItem("page_nbso_v3"));
		var capage = window.localStorage.getItem("page_nbso_v3");
		console.log('capage:'+capage);
		$("#capage").html(capage);
        document.documentElement.scrollTop = window.localStorage.getItem("top_nbso_v3");
        window.localStorage.setItem("top_nbso_v3", "null");
        window.localStorage.setItem("html_nbso_v3", "null");
		window.localStorage.setItem("allset_nbso_v3", "null");
		window.localStorage.setItem("menu_nbso_v3", "null");
		window.localStorage.setItem("menu2_nbso_v3", "null");
		console.log('caok');
		$("#caok").html(1);
		$("#nbso_main").html('1');
		$('.nbso_main').hide();
}else{
        $("#caok").html(0);
		$("#nbso_main").html('0');
}



</script>
<script>
$(function() {
wx.config(jssdkconfig);
wx.ready(function () {

wx.hideAllNonBaseMenuItem();
wx.showMenuItems({
    menuList: ["menuItem:openWithQQBrowser","menuItem:openWithSafari","menuItem:favorite"]
});

	});

});

function hide_one(){
  $('#html_one').fadeOut(300);
}


function encodeUnicode(str) {
	var res = [];
	for (var i = 0; i < str.length; i++) {
		res[i] = ("00" + str.charCodeAt(i).toString(16)).slice(-4);
	}
	return "\\u" + res.join("\\u");
}

function make_post_set_his() {
	// alert("method-pref");
	var key = $('#keyword').val();
	var copytxt = key;
	var out_txt = copytxt;
	if (key) {
		his_sync(key);
//nbcopy
var out_url = '';
var out_tkl = '';
var out_type = 0;
var out_txt = copytxt;
//nbcopy
        
	
		if(out_type > 0){
		// alert("jumpurl-2288");
		var jumpurl = "http://"+prourlhuanzi+"/officialAccount/getMaterialOptional?c=entry&i=2&m=bsht_tbk&do=so&nb_shopid=0&keyword=&shopid=0&nbnice=1&b64=1";
        //console.log(jumpurl);
		window.location.href=jumpurl;
        return false;
		
		}else{
		
		$('#html').html('');
		console.log("搜索关键字：" + key);
		var his = window.localStorage.getItem('nbso_his');
		if (his && his != '' && his != null) {
			window.localStorage.setItem('nbso_his', key + ',' + his);
		} else {
			window.localStorage.setItem('nbso_his', key);
		}
		$("#stop").html('0');
		$("#page").html('1');
		make_post_set();

		}
	} else {
		layer.msg('请输入关键字', {
			time: 1500
		});
	}
}

function xcx(obj){var info=obj.name;
	// alert("xcx--2322")
	var shopid="0";wx.miniProgram.navigateTo({url:'/bsht_tkxcx/pages/detail/index?info='+info+'&shopid='+shopid});var oldtitle = $('title').text();var nbtitle = info + "&type=tb&fm=nbapp&plus=nbfix";document.title = nbtitle;setTimeout(function(){document.title = oldtitle;},333);}

window.addEventListener("scroll", function (event) {
   if (document.body.scrollTop > 100 || document.documentElement.scrollTop > 100) {
       $('.go_top').show();
	   $('.nb_nav_div').attr('style','position: fixed;top:0px;');
	   $('.nbso-all').attr('style','top:41px;');
	   $('.nbso-all-bak').attr('style','top:41px;');
   }else{
       $('.go_top').hide();
	   $('.nb_nav_div').attr('style','');
	   $('.nbso-all').attr('style','');
	   $('.nbso-all-bak').attr('style','');
   }
});

</script>
<script>
if(('standalone' in window.navigator)&&window.navigator.standalone){
        var noddy,remotes=false;
        document.addEventListener('click',function(event){
                noddy=event.target;
                while(noddy.nodeName!=='A'&&noddy.nodeName!=='HTML') noddy=noddy.parentNode;
                if('href' in noddy&&noddy.href.indexOf('http')!==-1&&(noddy.href.indexOf(document.location.host)!==-1||remotes)){
                        event.preventDefault();
                        document.location.href=noddy.href;
                }
        },false);
}


nb_touch_right = throttle(function() {
			var index = $('#index').html();
			var allindex = $('#allindex').html();
			index = parseInt(index);
			allindex = parseInt(allindex);
			var newindex = index - 1;
			if (newindex < 0) {
				return false;
			} else {
				var newid = '.a_' + newindex;
				$('#index').html(newindex);
				$(newid).click();
			}
}, 678);

nb_touch_left = throttle(function() {
			var index = $('#index').html();
			var allindex = $('#allindex').html();
			index = parseInt(index);
			allindex = parseInt(allindex);
			var newindex = index + 1;
			if (newindex > allindex) {
				return false;
			} else {
				var newid = '.a_' + newindex;
				$('#index').html(newindex);
				$(newid).click();
			}
}, 678);

$(function() {
	var len = $('.sobtn').length;
	if(len > 1){
	   len = len - 1;
	   $('#allindex').html(len);
    };

});

 //搜索统计
 function his_sync(key){
	//  alert("搜索统计-2390")
	var uid = "0";
	var uniacid = "2";
	// key = encodeURIComponent(key);
	// $.ajax({
    //         type: "get",
	// 		dataType: "json",
	// 		url:"/index.php?i="+uniacid+"&c=entry&do=his_sync&m=bsht_tbk&uid="+uid+"&key="+key,
    //         success:function(res){


	// 		}
	// });
 }
 
</script>
<script>;</script>
</body></html>